package cn.xbtop.blog.mapper;

import cn.xbtop.blog.pojo.Admin;

/**
 * @author  Mxb
 * @date  2020/2/19 15:44
 * @version 1.0
 */
public interface AdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin admin);

    Admin selectByPrimaryKey(Integer id);
    /**
     * 修改信息
     * @param admin
     * @return
     */
    int updateByPrimaryKey(Admin admin);

    /**
     * 登录方法
     * @param username
     * @return
     */
    Admin selectByUsername(String username);


    Admin getAdmin();
}